package com.jfl;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.CrossOrigin;

import com.alibaba.dubbo.config.spring.context.annotation.EnableDubbo;

/**
 * JFL-WEB启动类
 *  
 * @author  赵炎
 * @version  [V1.00, 2018年12月2日]
 * @since V1.00
 */
// 扫描Dubbo服务
@EnableDubbo
// 允许跨域
@CrossOrigin
// pom.xml中有数据源配置文件 需要排除
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@ComponentScan(basePackages="com.jfl")
public class JflPlatformWebApplication 
{
	public static void main(String[] args)
	{
		SpringApplication.run(JflPlatformWebApplication.class, args);
	}
}
